//
//  DZNewsCellLayout.m
//  好奇心日报
//
//  Created by 董筱泽 on 2017/11/25.
//  Copyright © 2017年 董筱泽. All rights reserved.
//

#import "DZNewsCellLayout.h"

@implementation DZNewsCellLayout
- (instancetype)initWithModel:(DZFeedsModel *)model style:(DZNewsCellLayoutStyle)style {
    if (self = [super init]) {
        _model = model;
        _style = style;
    }
    return self;
}
    
- (CGFloat)height {
    switch (_style) {
        case DZNewsCellLayoutStyleAbove:
        return 330;
        break;
        case DZNewsCellLayoutStyleRight:
        return 130;
        break;
        default:
        return 360;
        break;
    }
}


@end
